package Common 
{	
	import Common.Ships.Rider;
	import Common.Ships.ShipAbstract;
	import Common.Ships.Scout;	
	import Common.Ships.Test;
	
	public class UnitsManager 
	{
		private static var FUnits:Vector.<UnitAbstract>;
		
		public function UnitsManager() 
		{			
		}
		
		public static function Init():void
		{
			if (!FUnits)
			{
				FUnits = new Vector.<UnitAbstract>;
				FUnits.push(new Test());
				FUnits.push(new Scout());
				FUnits.push(new Rider());
			}			
		}
		
		public static function get Units():Vector.<UnitAbstract>
		{
			Init();
			
			return FUnits;
		}
	}
}